@Only-api
@Post
@Get
@Delete
@BiologicallyDerivedProduct
Feature: Cell Donor Type and Source resource actions
Description: This feature checks the patient resource actions, get, post and delete made on FHIR specific BiologicallyDerivedProduct node. This resource is part of the Stem Cell Transplantation.
File name: xat.feature
Relative path: api/xat.feature
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:20.035 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:20.670 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:20.670 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P17GnHJkkDNDecGi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21374/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:20.670 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:23.879+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:20.670 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:20.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:20.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P17GnHJkkDNDecGi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21374/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:20.672 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:23.879+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:20.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:21.291 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:23.879+02:00",
"source": "#P17GnHJkkDNDecGi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:21.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:22.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:25.109+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:25.109+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:22.541 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:23.161 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:23.161 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lFvDg2NN6WIraJod"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21375/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:23.161 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:26.363+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:23.161 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:23.163 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:23.163 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lFvDg2NN6WIraJod"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21375/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:23.163 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:26.363+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:23.163 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:24.003 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:26.363+02:00",
"source": "#lFvDg2NN6WIraJod",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:24.620 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:25.235 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:27.829+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:27.829+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:25.236 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:25.848 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:25.848 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zRt0lcZ6wRhk0AJz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21376/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:25.848 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:29.051+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:25.848 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:25.849 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:25.849 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zRt0lcZ6wRhk0AJz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21376/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:25.849 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:29.051+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:25.849 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:26.487 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:29.051+02:00",
"source": "#zRt0lcZ6wRhk0AJz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:27.092 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:27.702 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:30.302+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:30.302+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:27.703 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:28.311 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:28.311 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dGy6j7a1Jjm7TJPW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21377/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:28.311 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:31.518+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:28.311 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:28.313 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:28.313 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dGy6j7a1Jjm7TJPW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21377/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:28.313 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:31.518+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:28.313 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:28.922 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:31.518+02:00",
"source": "#dGy6j7a1Jjm7TJPW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:29.538 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:30.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:32.737+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:32.737+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:30.157 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:30.781 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:30.781 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rq8XAfyomxj9QYzT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21378/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:30.781 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:33.981+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:30.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:30.783 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:30.783 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rq8XAfyomxj9QYzT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21378/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:30.783 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:33.981+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:30.783 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:31.404 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:33.981+02:00",
"source": "#Rq8XAfyomxj9QYzT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:32.020 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:32.656 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:35.230+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:35.230+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:32.658 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:33.279 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:33.279 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tdC9AHVsBMeBHtjK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21379/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:33.279 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:36.474+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:33.279 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:33.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:33.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tdC9AHVsBMeBHtjK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21379/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:33.280 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:36.474+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:33.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:33.894 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:36.474+02:00",
"source": "#tdC9AHVsBMeBHtjK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:34.525 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:35.129 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:37.730+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:37.730+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:35.131 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:35.956 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:35.956 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CBSx7VlWx52UZRR4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21380/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:35.956 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:39.165+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:35.956 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:35.957 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:35.957 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CBSx7VlWx52UZRR4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21380/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:35.957 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:39.165+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:35.957 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:36.544 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:39.165+02:00",
"source": "#CBSx7VlWx52UZRR4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:37.210 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:37.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:40.417+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:40.417+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:37.809 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:38.415 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:38.415 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8HhiJCjQb8iQd3K6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21381/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:38.415 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:41.609+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:38.415 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:38.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:38.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8HhiJCjQb8iQd3K6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21381/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:38.416 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:41.609+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:38.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:39.070 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:41.609+02:00",
"source": "#8HhiJCjQb8iQd3K6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:39.663 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:40.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:42.874+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:42.874+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:40.253 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:40.891 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:40.891 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z8g3yKXSI8JuuzUu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21382/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:40.891 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:44.097+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:40.891 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:40.892 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:40.892 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z8g3yKXSI8JuuzUu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21382/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:40.892 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:44.097+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:40.892 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:41.518 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:44.097+02:00",
"source": "#z8g3yKXSI8JuuzUu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:42.183 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:43.183 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:45.393+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:45.393+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:43.185 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:43.774 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:43.774 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kXlVFSv8R3VvYvFO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21383/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:43.774 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:46.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:43.775 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:43.776 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:43.776 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kXlVFSv8R3VvYvFO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21383/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:43.776 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:46.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:43.776 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:44.383 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:46.987+02:00",
"source": "#kXlVFSv8R3VvYvFO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:45.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:46.655 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:48.222+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:48.222+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:46.656 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:47.258 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:47.258 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"X3M1MXKZwm723TCD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21384/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:47.258 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:50.466+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:47.258 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:47.259 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:47.259 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"X3M1MXKZwm723TCD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21384/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:47.259 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:50.466+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:47.259 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:47.843 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:50.466+02:00",
"source": "#X3M1MXKZwm723TCD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:48.555 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:50.175 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:51.761+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:51.761+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:50.177 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:50.847 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:50.847 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1CggobB0SOuPjpFI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21385/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:50.847 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:54.004+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:50.847 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:50.849 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:50.849 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1CggobB0SOuPjpFI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21385/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:50.849 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:54.004+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:50.849 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:51.455 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:54.004+02:00",
"source": "#1CggobB0SOuPjpFI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:52.084 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:52.687 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:55.294+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:55.294+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:52.689 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:53.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:53.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rD8lQ9FX5CFBONQg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21386/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:53.302 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:56.509+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:53.302 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:53.303 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:53.304 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rD8lQ9FX5CFBONQg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21386/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:53.304 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:56.509+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:53.304 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:53.914 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:56.509+02:00",
"source": "#rD8lQ9FX5CFBONQg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:54.551 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:55.232 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:52:57.757+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:52:57.757+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:55.234 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:55.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:55.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Vo0rP5xyElk0Atht"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21387/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:55.850 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:59.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:55.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:55.851 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:55.851 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Vo0rP5xyElk0Atht"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21387/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:52:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:52:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:55.851 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:59.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:55.851 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:56.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:52:59.058+02:00",
"source": "#Vo0rP5xyElk0Atht",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:57.171 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:52:57.790 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:00.381+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:00.381+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:52:57.791 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:58.399 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:58.399 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"txZTN7hkG749mkuC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21388/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:58.399 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:01.613+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:58.399 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:52:58.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:52:58.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"txZTN7hkG749mkuC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21388/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:52:58.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:01.613+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:52:58.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:52:59.007 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:01.613+02:00",
"source": "#txZTN7hkG749mkuC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:52:59.621 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:00.244 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:02.832+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:02.832+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:00.245 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:00.883 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:00.883 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yFlDH5LZRej4t0eA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21389/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:00.883 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:04.092+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:00.883 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:00.885 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:00.885 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yFlDH5LZRej4t0eA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21389/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:00.885 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:04.092+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:00.885 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:01.525 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:04.092+02:00",
"source": "#yFlDH5LZRej4t0eA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:02.135 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:02.751 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:05.347+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:05.347+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:02.752 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:03.352 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:03.352 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"suVd5IBVkBvmrQvI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21390/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:03.352 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:06.564+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:03.352 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:03.353 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:03.353 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"suVd5IBVkBvmrQvI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21390/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:03.353 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:06.564+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:03.353 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:03.986 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:06.564+02:00",
"source": "#suVd5IBVkBvmrQvI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:04.613 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:05.252 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:07.818+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:07.818+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:05.253 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:05.861 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:05.861 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nr9TA0jnADkMEDKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21391/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:05.861 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:09.065+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:05.861 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:05.862 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:05.862 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nr9TA0jnADkMEDKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21391/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:05.862 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:09.065+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:05.862 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:06.474 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:09.065+02:00",
"source": "#nr9TA0jnADkMEDKi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:07.090 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:07.991 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:10.299+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:10.299+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:07.993 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:08.603 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:08.603 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JaE5tO27QG5UFe6Q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21392/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:08.603 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:11.818+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:08.603 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:08.605 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:08.605 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JaE5tO27QG5UFe6Q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21392/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:08.605 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:11.818+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:08.605 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:09.196 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:11.818+02:00",
"source": "#JaE5tO27QG5UFe6Q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:09.820 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:11.426 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:13.019+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:13.019+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:11.427 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:13.062 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:13.062 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CeOWCYDF9XfOEMUj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21393/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:13.062 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:16.277+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:13.062 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:13.064 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:13.064 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CeOWCYDF9XfOEMUj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21393/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:13.064 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:16.277+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:13.064 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:13.675 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:16.277+02:00",
"source": "#CeOWCYDF9XfOEMUj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:14.330 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:14.946 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:17.533+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:17.533+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:14.948 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:15.562 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:15.562 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TN4UA0L81tWFkupU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21394/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:15.562 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:18.772+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:15.562 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:15.564 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:15.564 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TN4UA0L81tWFkupU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21394/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:15.564 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:18.772+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:15.564 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:16.172 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:18.772+02:00",
"source": "#TN4UA0L81tWFkupU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:16.789 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:17.419 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:20.000+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:20.000+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:17.421 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:18.014 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:18.014 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NUKpsc517eaN5iYL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21395/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:18.014 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:21.226+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:18.014 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:18.016 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:18.016 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NUKpsc517eaN5iYL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21395/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:18.016 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:21.226+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:18.016 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:18.611 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:21.226+02:00",
"source": "#NUKpsc517eaN5iYL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:19.225 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:19.884 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:22.435+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:22.435+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:19.886 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:21.504 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:21.504 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hwKpMgYrEwVYIe12"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21396/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:21.504 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:24.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:21.504 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:21.505 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:21.505 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hwKpMgYrEwVYIe12"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21396/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:21.505 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:24.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:21.505 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:22.146 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:24.708+02:00",
"source": "#hwKpMgYrEwVYIe12",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:22.768 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:23.385 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:25.976+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:25.976+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:23.386 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:24.002 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:24.002 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"N7Ksis1FBGdnXRec"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21397/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:24.002 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:27.217+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:24.002 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:24.007 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:24.007 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"N7Ksis1FBGdnXRec"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21397/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:24.007 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:27.217+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:24.007 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:25.631 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:27.217+02:00",
"source": "#N7Ksis1FBGdnXRec",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:26.242 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:26.853 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:29.457+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:29.457+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:26.854 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:27.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:27.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K5zgi0Gjy4vzmyJB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21398/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:27.458 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:30.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:27.458 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:27.459 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:27.459 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K5zgi0Gjy4vzmyJB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21398/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:27.459 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:30.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:27.459 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:28.058 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:30.672+02:00",
"source": "#K5zgi0Gjy4vzmyJB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:28.697 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:29.309 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:31.911+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:31.911+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:29.311 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:29.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:29.941 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NlJWppNlkpUI1i92"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21399/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:29.941 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:33.152+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:29.941 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:29.943 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:29.943 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NlJWppNlkpUI1i92"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21399/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:29.943 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:33.152+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:29.943 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:30.585 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:33.152+02:00",
"source": "#NlJWppNlkpUI1i92",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:32.215 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:32.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:35.410+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:35.410+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:32.829 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:33.426 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:33.426 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TsuyU1hRxyOZNrj6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21400/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:33.426 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:36.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:33.426 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:33.428 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:33.428 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TsuyU1hRxyOZNrj6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21400/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:33.428 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:36.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:33.428 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:34.047 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:36.642+02:00",
"source": "#TsuyU1hRxyOZNrj6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:34.676 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:35.300 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:37.889+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:37.889+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:35.301 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:35.909 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:35.909 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yvU7DfuAmMBqcB9O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21401/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:35.909 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:39.123+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:35.909 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:35.911 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:35.911 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yvU7DfuAmMBqcB9O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21401/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:35.911 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:39.123+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:35.911 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:36.533 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:39.123+02:00",
"source": "#yvU7DfuAmMBqcB9O",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:37.530 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:38.135 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:40.743+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:40.743+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:38.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:38.756 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:38.756 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aAj8Uic5af61Rn4A"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21402/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:38.756 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:41.967+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:38.756 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:38.757 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:38.757 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aAj8Uic5af61Rn4A"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21402/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:38.757 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:41.967+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:38.757 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:39.383 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:41.967+02:00",
"source": "#aAj8Uic5af61Rn4A",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:40.011 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:40.653 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:43.220+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:43.220+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:40.654 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:41.269 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:41.269 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"21h3ofhH6M8zHBwM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21403/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:41.269 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:44.483+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:41.269 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:41.270 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:41.270 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"21h3ofhH6M8zHBwM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21403/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:41.270 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:44.483+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:41.271 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:41.863 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:44.483+02:00",
"source": "#21h3ofhH6M8zHBwM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:42.470 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:43.068 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:45.686+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:45.686+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:43.069 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:43.691 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:43.691 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"71V5XWbwZA2dX3By"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21404/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:43.691 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:46.910+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:43.691 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:43.692 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:43.692 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"71V5XWbwZA2dX3By"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21404/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:43.692 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:46.910+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:43.693 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:44.292 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:46.910+02:00",
"source": "#71V5XWbwZA2dX3By",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:44.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:45.503 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:48.126+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:48.126+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:45.505 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:46.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:46.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wmpCAPvcQDKKa6Iq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21405/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:46.118 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:49.334+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:46.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:46.119 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:46.119 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wmpCAPvcQDKKa6Iq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21405/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:46.119 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:49.334+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:46.119 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:46.712 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:49.334+02:00",
"source": "#wmpCAPvcQDKKa6Iq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:47.331 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:47.957 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:50.545+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:50.545+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:47.959 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:48.543 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:48.543 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h826VfWdhye7nzBj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21406/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:48.543 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:51.757+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:48.543 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:48.545 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:48.545 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h826VfWdhye7nzBj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21406/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:48.545 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:51.757+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:48.545 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:49.146 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:51.757+02:00",
"source": "#h826VfWdhye7nzBj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:49.753 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:50.362 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:52.965+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:52.965+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:50.364 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:50.965 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:50.965 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vGs573NcWgrcpSFC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21407/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:50.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:54.180+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:50.965 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:50.966 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:50.966 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vGs573NcWgrcpSFC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21407/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:50.966 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:54.180+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:50.966 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:51.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:54.180+02:00",
"source": "#vGs573NcWgrcpSFC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:52.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:52.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:55.369+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:55.369+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:52.776 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:53.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:53.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2ZIGzMZYa90Pkggo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21408/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:53.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:56.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:53.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:53.402 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:53.402 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2ZIGzMZYa90Pkggo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21408/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:53:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:53.403 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:56.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:53.403 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:55.036 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:53:56.617+02:00",
"source": "#2ZIGzMZYa90Pkggo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:55.659 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:56.275 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:53:58.875+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:53:58.875+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:56.276 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:56.910 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:56.910 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ECN7xtNa7nyUyIvq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21409/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:56.910 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:00.121+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:56.910 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:56.911 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:56.911 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ECN7xtNa7nyUyIvq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21409/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:53:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:56.911 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:00.121+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:56.911 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:53:57.572 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:00.121+02:00",
"source": "#ECN7xtNa7nyUyIvq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:53:58.224 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:53:58.816 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:01.427+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:01.427+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:53:58.817 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:59.444 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:59.444 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fap66NFMueAjoIRE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21410/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:59.445 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:02.661+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:59.445 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:53:59.446 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:53:59.446 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fap66NFMueAjoIRE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21410/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:53:59.446 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:02.661+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:53:59.446 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:00.066 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:02.661+02:00",
"source": "#fap66NFMueAjoIRE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:00.695 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:01.331 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:03.900+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:03.900+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:01.332 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:01.958 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:01.958 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IwmrWkhTQXvGOnsD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21411/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:01.958 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:05.177+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:01.958 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:01.959 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:01.959 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IwmrWkhTQXvGOnsD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21411/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:01.959 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:05.177+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:01.959 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:02.578 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:05.177+02:00",
"source": "#IwmrWkhTQXvGOnsD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:03.210 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:03.827 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:06.415+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:06.415+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:03.828 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:04.423 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:04.423 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ju4JZ73USJ0NvQeG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21412/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:04.423 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:07.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:04.423 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:04.424 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:04.424 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ju4JZ73USJ0NvQeG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21412/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:04.424 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:07.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:04.424 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:05.077 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:07.643+02:00",
"source": "#Ju4JZ73USJ0NvQeG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:05.694 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:06.312 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:08.907+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:08.907+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:06.313 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:06.951 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:06.951 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nnNcMOC4LpdEDtfh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21413/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:06.952 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:10.142+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:06.952 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:06.954 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:06.954 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nnNcMOC4LpdEDtfh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21413/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:06.954 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:10.142+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:06.954 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:07.581 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:10.142+02:00",
"source": "#nnNcMOC4LpdEDtfh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:08.236 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:08.841 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:11.434+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:11.434+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:08.843 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:09.447 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:09.447 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aQiiG1WPtmvHJRuh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21414/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:09.447 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:12.663+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:09.447 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:09.448 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:09.448 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aQiiG1WPtmvHJRuh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21414/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:09.448 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:12.663+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:09.448 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:10.340 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:12.663+02:00",
"source": "#aQiiG1WPtmvHJRuh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:10.984 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:11.591 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:14.188+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:14.188+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:11.593 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:12.237 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:12.237 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c1ya0H6er1Bg0gAz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21415/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:12.237 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:15.432+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:12.237 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:12.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:12.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c1ya0H6er1Bg0gAz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21415/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:12.239 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:15.432+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:12.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:13.847 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:15.432+02:00",
"source": "#c1ya0H6er1Bg0gAz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:14.501 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:15.129 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:17.717+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:17.717+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:15.130 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:15.735 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:15.735 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2uQb3ZjU4YvP6PwB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21416/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:15.735 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:18.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:15.735 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:15.736 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:15.736 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2uQb3ZjU4YvP6PwB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21416/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:15.737 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:18.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:15.737 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:16.342 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:18.949+02:00",
"source": "#2uQb3ZjU4YvP6PwB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:16.972 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:17.587 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:20.188+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:20.188+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:17.588 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:18.212 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:18.212 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zkx6HZvD1EtshwAY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21417/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:18.212 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:21.419+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:18.212 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:18.213 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:18.213 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zkx6HZvD1EtshwAY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21417/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:18.213 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:21.419+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:18.213 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:19.008 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:21.419+02:00",
"source": "#zkx6HZvD1EtshwAY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:19.614 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:20.240 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:22.831+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:22.831+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:20.241 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:20.842 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:20.842 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hqrceTEaHLWoAJyj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21418/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:20.842 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:24.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:20.842 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:20.844 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:20.844 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hqrceTEaHLWoAJyj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21418/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:20.844 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:24.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:20.844 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:21.484 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:24.058+02:00",
"source": "#hqrceTEaHLWoAJyj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:22.094 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:22.738 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:25.312+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:25.312+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:22.740 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:23.389 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:23.389 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"11p1Mb68HajFUOcZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21419/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:23.389 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:26.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:23.389 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:23.391 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:23.391 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"11p1Mb68HajFUOcZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21419/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:23.391 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:26.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:23.391 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:25.001 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:26.592+02:00",
"source": "#11p1Mb68HajFUOcZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:25.628 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:26.246 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:28.847+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:28.847+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:26.248 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:27.058 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:27.058 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iokf1r6VPm3BIdRM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21420/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:27.058 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:30.274+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:27.058 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:27.060 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:27.060 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iokf1r6VPm3BIdRM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21420/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:27.060 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:30.274+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:27.060 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:27.671 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:30.274+02:00",
"source": "#iokf1r6VPm3BIdRM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:28.273 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:28.886 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:31.484+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:31.484+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:28.887 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:29.496 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:29.496 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0Q6P8VNqPIxn4KLH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21421/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:29.496 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:32.709+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:29.497 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:29.498 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:29.498 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0Q6P8VNqPIxn4KLH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21421/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:29.498 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:32.709+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:29.498 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:30.141 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:32.709+02:00",
"source": "#0Q6P8VNqPIxn4KLH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:31.009 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:31.614 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:34.196+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:34.196+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:31.615 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:33.271 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:33.271 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nMUEorH4ayeOrzOY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21422/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:33.271 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:36.486+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:33.271 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:33.272 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:33.272 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nMUEorH4ayeOrzOY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21422/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:33.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:36.486+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:33.272 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:33.876 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:36.486+02:00",
"source": "#nMUEorH4ayeOrzOY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:34.500 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:35.345 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:37.718+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:37.718+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:35.347 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:36.197 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:36.198 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xunSTUuBWtaETVVf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21423/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:36.198 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:39.413+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:36.198 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:36.199 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:36.199 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xunSTUuBWtaETVVf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21423/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:36.199 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:39.413+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:36.199 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:36.806 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:39.413+02:00",
"source": "#xunSTUuBWtaETVVf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:37.422 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:38.059 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:40.633+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:40.633+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:38.061 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:39.787 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:39.787 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"U4zBN2aLJUpzb8v1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21424/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:39.787 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:43.005+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:39.787 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:39.788 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:39.788 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"U4zBN2aLJUpzb8v1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21424/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:39.788 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:43.005+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:39.788 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:40.400 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:43.005+02:00",
"source": "#U4zBN2aLJUpzb8v1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:41.026 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:41.624 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:44.241+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:44.241+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:41.626 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:42.240 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:42.240 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PRFohkPQInUjUP9h"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21425/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:42.240 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:45.454+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:42.240 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:42.242 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:42.242 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PRFohkPQInUjUP9h"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21425/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:42.242 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:45.454+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:42.242 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:42.875 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:45.454+02:00",
"source": "#PRFohkPQInUjUP9h",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:43.495 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:44.099 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:46.710+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:46.710+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:44.100 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:44.692 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:44.692 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2kjfZ6vYeAjF0zdc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21426/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:44.692 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:47.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:44.692 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:44.694 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:44.694 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2kjfZ6vYeAjF0zdc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21426/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:44.694 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:47.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:44.694 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:45.318 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:47.911+02:00",
"source": "#2kjfZ6vYeAjF0zdc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:45.931 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:46.807 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:49.150+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:49.150+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:46.808 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:47.656 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:47.656 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yMYmL4z60xDRMtIy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21427/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:47.656 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:50.873+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:47.656 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:47.657 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:47.657 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yMYmL4z60xDRMtIy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21427/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:47.658 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:50.873+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:47.658 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:48.308 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:50.873+02:00",
"source": "#yMYmL4z60xDRMtIy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:49.109 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:49.735 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:52.328+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:52.328+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:49.737 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:50.344 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:50.344 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KaX7Y6hVuE0P1ER1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21428/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:50.344 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:53.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:50.344 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:50.346 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:50.346 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KaX7Y6hVuE0P1ER1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21428/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:50.346 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:53.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:50.346 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:50.963 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:53.563+02:00",
"source": "#KaX7Y6hVuE0P1ER1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:51.616 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:52.249 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:54.808+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:54.808+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:52.251 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:52.882 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:52.882 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tiBS3huTffnTwlOG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21429/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:52.882 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:56.082+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:52.882 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:52.883 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:52.883 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tiBS3huTffnTwlOG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21429/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:52.883 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:56.082+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:52.883 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:53.477 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:56.082+02:00",
"source": "#tiBS3huTffnTwlOG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:55.087 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:55.948 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:54:58.306+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:54:58.306+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:55.949 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:56.588 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:56.588 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zft4EnCQeb6NOGn0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21430/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:56.588 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:59.797+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:56.588 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:56.589 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:56.589 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zft4EnCQeb6NOGn0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21430/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:54:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:54:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:56.589 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:59.797+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:56.589 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:54:57.246 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:54:59.797+02:00",
"source": "#zft4EnCQeb6NOGn0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:54:57.851 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:54:58.470 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:01.068+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:01.068+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:54:58.472 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:59.078 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:59.078 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nxjSgu34eq8XsfQ3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21431/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:59.078 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:02.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:59.078 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:54:59.079 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:54:59.079 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nxjSgu34eq8XsfQ3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21431/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:54:59.080 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:02.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:54:59.080 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:00.132 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:02.293+02:00",
"source": "#nxjSgu34eq8XsfQ3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:00.757 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:01.357 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:03.973+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:03.973+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:01.358 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:01.950 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:01.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Kk5C96xQpEcarZHN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21432/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:01.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:05.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:01.950 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:01.951 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:01.951 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Kk5C96xQpEcarZHN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21432/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:01.951 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:05.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:01.952 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:02.575 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:05.167+02:00",
"source": "#Kk5C96xQpEcarZHN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:03.199 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:03.811 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:06.418+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:06.418+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:03.813 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:04.426 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:04.426 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NNOIjiaUhJOigznJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21433/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:04.426 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:07.645+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:04.426 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:04.427 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:04.428 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NNOIjiaUhJOigznJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21433/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:04.428 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:07.645+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:04.428 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:05.060 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:07.645+02:00",
"source": "#NNOIjiaUhJOigznJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:05.666 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:07.286 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:08.881+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:08.881+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:07.287 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:07.888 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:07.888 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H5PDJvloaJ9rL1Tr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21434/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:07.889 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:11.103+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:07.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:07.890 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:07.890 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"H5PDJvloaJ9rL1Tr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21434/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:07.890 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:11.103+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:07.890 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:08.473 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:11.103+02:00",
"source": "#H5PDJvloaJ9rL1Tr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:09.085 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:09.690 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:12.293+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:12.293+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:09.692 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:10.307 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:10.307 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kdbcWVEcZmWRI5SP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21435/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:10.307 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:13.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:10.307 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:10.309 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:10.309 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kdbcWVEcZmWRI5SP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21435/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:10.309 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:13.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:10.309 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:10.970 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:13.524+02:00",
"source": "#kdbcWVEcZmWRI5SP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:11.606 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:12.217 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:14.819+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:14.819+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:12.218 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:12.812 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:12.812 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V5Eivu8S0VCNPRpV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21436/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:12.812 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:16.030+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:12.812 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:12.814 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:12.814 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V5Eivu8S0VCNPRpV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21436/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:12.814 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:16.030+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:12.814 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:13.451 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:16.030+02:00",
"source": "#V5Eivu8S0VCNPRpV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:14.049 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:14.661 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:17.269+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:17.269+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:14.663 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:15.294 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:15.294 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qyHP7WrOzvwz0cCJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21437/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:15.294 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:18.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:15.294 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:15.296 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:15.296 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qyHP7WrOzvwz0cCJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21437/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:15.296 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:18.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:15.296 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:15.897 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:18.512+02:00",
"source": "#qyHP7WrOzvwz0cCJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:16.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:17.150 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:19.758+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:19.758+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:17.150 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:17.756 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:17.756 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P90y3SZO1ByTrNOf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21438/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:17.756 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:20.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:17.756 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:17.758 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:17.758 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P90y3SZO1ByTrNOf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21438/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:17.758 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:20.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:17.758 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:18.362 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:20.971+02:00",
"source": "#P90y3SZO1ByTrNOf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:18.979 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:19.588 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:22.180+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:22.180+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:19.589 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:20.204 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:20.204 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8ggsX6Bcef5nKHcy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21439/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:20.204 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:23.423+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:20.204 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:20.205 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:20.205 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8ggsX6Bcef5nKHcy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21439/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:20.205 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:23.423+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:20.205 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:20.829 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:23.423+02:00",
"source": "#8ggsX6Bcef5nKHcy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:23.832 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:24.838 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:27.043+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:27.043+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:24.839 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:25.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:25.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wWUmrddGs4YrANRQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21440/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:25.455 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:28.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:25.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:25.457 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:25.457 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wWUmrddGs4YrANRQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21440/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:25.457 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:28.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:25.457 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:26.078 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:28.669+02:00",
"source": "#wWUmrddGs4YrANRQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:26.695 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:27.316 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:29.914+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:29.914+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:27.317 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:27.949 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:27.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sERJL4OC7dmKdFOc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21441/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:27.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:31.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:27.950 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:27.951 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:27.951 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sERJL4OC7dmKdFOc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21441/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:27.951 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:31.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:27.951 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:28.563 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:31.162+02:00",
"source": "#sERJL4OC7dmKdFOc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:29.398 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:30.225 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:32.613+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:32.613+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:30.226 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:30.837 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:30.837 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yVJtFj88ur9D4wva"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21442/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:30.837 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:34.059+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:30.837 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:30.838 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:30.838 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yVJtFj88ur9D4wva"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21442/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:30.838 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:34.059+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:30.838 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:31.442 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:34.059+02:00",
"source": "#yVJtFj88ur9D4wva",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:32.059 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:32.683 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:35.273+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:35.273+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:32.684 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:33.329 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:33.329 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bWFGT22AAYBcUmIz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21443/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:33.329 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:36.536+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:33.329 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:33.331 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:33.331 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bWFGT22AAYBcUmIz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21443/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:33.331 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:36.536+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:33.331 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:33.928 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:36.536+02:00",
"source": "#bWFGT22AAYBcUmIz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:34.941 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:35.555 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:38.157+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:38.157+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:35.557 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:36.191 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:36.191 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mDLf6BBj6OYD4eeI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21444/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:36.191 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:39.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:36.191 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:36.192 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:36.192 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mDLf6BBj6OYD4eeI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21444/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:36.192 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:39.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:36.193 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:36.774 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:39.394+02:00",
"source": "#mDLf6BBj6OYD4eeI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:37.389 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:37.997 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:40.593+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:40.593+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:37.999 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:39.609 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:39.609 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ATuGZx5h7EsEv2Sr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21445/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:39.609 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:42.828+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:39.609 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:39.610 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:39.610 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ATuGZx5h7EsEv2Sr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21445/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:39.610 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:42.828+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:39.610 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:40.219 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:42.828+02:00",
"source": "#ATuGZx5h7EsEv2Sr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:40.845 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:41.451 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:44.063+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:44.063+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:41.452 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:42.049 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:42.050 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Dh6YYr1er24Q4iuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21446/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:42.050 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:45.262+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:42.050 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:42.051 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:42.051 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Dh6YYr1er24Q4iuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21446/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:42.051 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:45.262+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:42.051 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:42.656 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:45.262+02:00",
"source": "#Dh6YYr1er24Q4iuH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:43.367 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:43.964 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:46.584+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:46.584+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:43.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:44.558 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:44.559 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mknn0tr3WZdfDxTL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21447/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:44.559 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:47.778+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:44.559 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:44.560 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:44.560 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mknn0tr3WZdfDxTL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21447/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:44.560 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:47.778+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:44.560 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:45.183 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:47.778+02:00",
"source": "#Mknn0tr3WZdfDxTL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:45.784 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:46.434 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:49.003+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:49.003+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:46.436 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:47.235 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:47.235 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nQDcwgDD7KJlsopZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21448/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:47.235 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:50.454+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:47.236 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:47.237 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:47.237 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nQDcwgDD7KJlsopZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21448/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:47.237 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:50.454+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:47.237 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:47.833 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:50.454+02:00",
"source": "#nQDcwgDD7KJlsopZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:48.429 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:49.019 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:51.647+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:51.647+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:49.021 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:49.625 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:49.625 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lUvaHq01c6wbG1lG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21449/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:49.625 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:52.843+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:49.625 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:49.627 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:49.627 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lUvaHq01c6wbG1lG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21449/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:49.627 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:52.843+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:49.627 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:50.216 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:52.843+02:00",
"source": "#lUvaHq01c6wbG1lG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:50.823 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:51.424 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:54.042+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:54.042+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:51.425 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:52.028 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:52.028 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LbfwyBRiv883sP88"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21450/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:52.028 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:55.246+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:52.028 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:52.029 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:52.029 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LbfwyBRiv883sP88"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21450/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:52.029 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:55.246+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:52.029 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:52.640 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:55.246+02:00",
"source": "#LbfwyBRiv883sP88",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:53.255 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:53.881 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:56.469+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:56.469+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:53.881 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:54.470 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:54.470 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fPlg0b8OldI5z6n0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21451/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:54.470 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:57.690+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:54.470 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:54.471 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:54.471 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fPlg0b8OldI5z6n0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21451/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:55:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:55:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:54.471 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:57.690+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:54.472 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:55.093 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:55:57.690+02:00",
"source": "#fPlg0b8OldI5z6n0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:55.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:56.333 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:55:58.920+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:55:58.920+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:56.334 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:56.921 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:56.921 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ukfz6PU4PIF3ipKe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21452/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:56.921 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:00.138+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:56.921 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:56.923 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:56.923 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ukfz6PU4PIF3ipKe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21452/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:56.923 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:00.138+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:56.923 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:57.526 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:00.138+02:00",
"source": "#Ukfz6PU4PIF3ipKe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:55:58.145 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:55:58.736 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:01.363+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:01.363+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:55:58.738 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:59.333 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:59.333 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EMXFKFOece8kjm6i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21453/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:59.333 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:02.550+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:59.333 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:55:59.335 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:55:59.335 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EMXFKFOece8kjm6i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21453/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:55:59.335 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:02.550+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:55:59.335 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:55:59.933 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:02.550+02:00",
"source": "#EMXFKFOece8kjm6i",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:00.520 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:01.138 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:03.738+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:03.738+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:01.139 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:01.768 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:01.768 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IitTCh1WVvSUERwF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21454/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:01.768 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:04.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:01.768 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:01.769 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:01.769 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IitTCh1WVvSUERwF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21454/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:01.769 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:04.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:01.769 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:02.377 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:04.986+02:00",
"source": "#IitTCh1WVvSUERwF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:02.984 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:03.567 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:06.203+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:06.203+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:03.569 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:04.171 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:04.171 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Jh66bw7rUE6qkBHq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21455/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:04.171 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:07.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:04.171 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:04.173 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:04.173 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Jh66bw7rUE6qkBHq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21455/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:04.173 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:07.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:04.173 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:04.780 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:07.388+02:00",
"source": "#Jh66bw7rUE6qkBHq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:05.380 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:06.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:08.599+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:08.599+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:06.011 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:06.624 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:06.624 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXjJdpLOnTTY9ouY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21456/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:06.624 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:09.837+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:06.624 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:06.626 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:06.626 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXjJdpLOnTTY9ouY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21456/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:06.626 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:09.837+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:06.626 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:07.218 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:09.837+02:00",
"source": "#OXjJdpLOnTTY9ouY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:07.847 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:08.440 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:11.066+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:11.066+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:08.441 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:09.081 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:09.081 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HCxYjoCxeh2CSLKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21457/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:09.081 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:12.294+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:09.081 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:09.084 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:09.084 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HCxYjoCxeh2CSLKi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21457/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:09.084 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:12.294+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:09.084 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:09.696 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:12.294+02:00",
"source": "#HCxYjoCxeh2CSLKi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:10.401 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:11.005 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:13.599+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:13.599+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:11.006 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:11.651 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:11.651 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DLQyud2G9lCho4Rz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21458/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:11.652 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:14.863+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:11.652 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:11.653 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:11.654 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DLQyud2G9lCho4Rz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21458/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:11.654 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:14.863+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:11.654 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:12.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:14.863+02:00",
"source": "#DLQyud2G9lCho4Rz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:12.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:13.495 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:16.105+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:16.105+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:13.497 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:14.119 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:14.119 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZUbwvzElr6gIBSVH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21459/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:14.119 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:17.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:14.119 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:14.120 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:14.120 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZUbwvzElr6gIBSVH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21459/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:14.120 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:17.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:14.120 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:14.708 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:17.328+02:00",
"source": "#ZUbwvzElr6gIBSVH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:15.313 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:15.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:18.525+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:18.525+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:15.935 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:16.584 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:16.584 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nXrrw10p3hMpsajL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21460/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:16.584 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:19.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:16.584 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:16.585 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:16.585 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nXrrw10p3hMpsajL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21460/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:16.585 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:19.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:16.585 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:17.193 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:19.793+02:00",
"source": "#nXrrw10p3hMpsajL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:17.814 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:18.426 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:21.025+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:21.025+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:18.428 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:19.044 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:19.044 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6Qwj00dSDYf8x3o6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21461/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:19.044 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:22.245+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:19.044 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:19.046 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:19.046 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6Qwj00dSDYf8x3o6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21461/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:19.046 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:22.245+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:19.046 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:19.647 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:22.245+02:00",
"source": "#6Qwj00dSDYf8x3o6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:20.289 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:20.930 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:23.503+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:23.503+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:20.931 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:21.568 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:21.568 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aA0cqQDuu06BkO0I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21462/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:21.568 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:24.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:21.568 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:21.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:21.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aA0cqQDuu06BkO0I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21462/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:21.570 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:24.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:21.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:22.172 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:24.781+02:00",
"source": "#aA0cqQDuu06BkO0I",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:22.805 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:23.419 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:26.019+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:26.019+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:23.421 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:24.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:24.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8GbjweZUcBln3RWi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21463/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:24.026 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:27.241+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:24.026 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:24.027 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:24.027 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8GbjweZUcBln3RWi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21463/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:24.027 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:27.241+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:24.027 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:24.647 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:27.241+02:00",
"source": "#8GbjweZUcBln3RWi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:25.285 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:25.909 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:28.494+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:28.494+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:25.911 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:26.556 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:26.556 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"avAlos5jhptTcgI2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21464/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:26.556 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:29.762+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:26.556 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:26.558 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:26.558 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"avAlos5jhptTcgI2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21464/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:26.558 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:29.762+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:26.558 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:27.140 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:29.762+02:00",
"source": "#avAlos5jhptTcgI2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:27.798 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:28.403 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:31.017+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:31.017+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:28.404 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:29.022 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:29.022 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eGLKQ6gUB5Auvkds"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21465/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:29.022 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:32.236+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:29.023 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:29.024 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:29.024 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"eGLKQ6gUB5Auvkds"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21465/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:29.024 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:32.236+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:29.024 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:29.611 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:32.236+02:00",
"source": "#eGLKQ6gUB5Auvkds",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:30.232 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:30.859 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:33.442+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:33.442+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:30.861 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:31.470 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:31.470 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6wg4OKxycET2oxnZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21466/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:31.470 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:34.685+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:31.470 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:31.471 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:31.472 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6wg4OKxycET2oxnZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21466/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:31.472 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:34.685+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:31.472 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:32.099 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:34.685+02:00",
"source": "#6wg4OKxycET2oxnZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:32.712 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:33.346 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:35.928+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:35.928+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:33.347 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:33.966 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:33.966 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7HF4IK4ALKl68kxt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21467/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:33.966 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:37.184+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:33.966 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:33.967 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:33.967 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7HF4IK4ALKl68kxt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21467/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:33.967 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:37.184+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:33.967 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:34.572 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:37.184+02:00",
"source": "#7HF4IK4ALKl68kxt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:35.187 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:35.821 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:38.404+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:38.404+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:35.823 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:36.453 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:36.453 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TMhYSJc1R8Za84BQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21468/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:36.453 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:39.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:36.453 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:36.454 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:36.454 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TMhYSJc1R8Za84BQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21468/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:36.454 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:39.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:36.454 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:37.082 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:39.669+02:00",
"source": "#TMhYSJc1R8Za84BQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:38.696 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:39.300 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:41.907+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:41.907+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:39.301 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:39.927 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:39.927 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dnLrSqn4GAsRXhvD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21469/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:39.927 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:43.135+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:39.927 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:39.928 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:39.928 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dnLrSqn4GAsRXhvD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21469/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:39.928 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:43.135+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:39.928 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:40.525 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:43.135+02:00",
"source": "#dnLrSqn4GAsRXhvD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:41.186 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:42.045 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:44.386+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:44.386+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:42.046 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:42.667 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:42.667 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"siVNAZeOH3HPGLLu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21470/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:42.667 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:45.881+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:42.668 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:42.669 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:42.669 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"siVNAZeOH3HPGLLu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21470/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:42.669 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:45.881+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:42.669 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:43.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:45.881+02:00",
"source": "#siVNAZeOH3HPGLLu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:43.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:44.551 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:47.113+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:47.113+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:44.553 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:45.153 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:45.153 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mGlMKgki77DokrWY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21471/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:45.153 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:48.372+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:45.153 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:45.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:45.154 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mGlMKgki77DokrWY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21471/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:45.154 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:48.372+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:45.154 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:45.766 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:48.372+02:00",
"source": "#mGlMKgki77DokrWY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:46.389 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:47.029 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:49.598+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:49.598+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:47.030 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:47.671 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:47.671 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"91bjWF2O20voPNk4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21472/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:47.671 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:50.880+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:47.671 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:47.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:47.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"91bjWF2O20voPNk4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21472/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:47.672 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:50.880+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:47.673 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:48.284 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:50.880+02:00",
"source": "#91bjWF2O20voPNk4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:48.900 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:49.531 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:52.119+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:52.119+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:49.533 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:50.166 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:50.166 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9WiXKLx2ssmYnvQw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21473/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:50.166 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:53.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:50.166 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:50.167 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:50.167 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9WiXKLx2ssmYnvQw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21473/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:50.167 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:53.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:50.167 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:50.796 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:53.373+02:00",
"source": "#9WiXKLx2ssmYnvQw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:51.442 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:52.059 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:54.655+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:54.655+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:52.060 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:52.692 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:52.692 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K1b8FQTvk5ojU3P9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21474/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:52.692 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:55.907+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:52.692 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:52.694 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:52.694 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K1b8FQTvk5ojU3P9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21474/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:52.694 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:55.907+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:52.694 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:53.312 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:55.907+02:00",
"source": "#K1b8FQTvk5ojU3P9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:53.928 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:54.561 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:57.143+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:57.143+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:54.563 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:55.204 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:55.204 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MVEIiWNXBXpgeWLa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21475/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:55.204 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:58.416+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:55.204 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:55.206 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:55.206 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MVEIiWNXBXpgeWLa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21475/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:56:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:56:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:55.206 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:58.416+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:55.206 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:55.828 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:56:58.416+02:00",
"source": "#MVEIiWNXBXpgeWLa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:56.451 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:56:57.068 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:56:59.646+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:56:59.646+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:56:57.070 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:58.191 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:58.191 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uYhJKZNqcsm10KF2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21476/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:58.191 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:01.393+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:58.191 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:56:58.192 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:56:58.192 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uYhJKZNqcsm10KF2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21476/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:56:58.192 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:01.393+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:56:58.192 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:56:58.798 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:01.393+02:00",
"source": "#uYhJKZNqcsm10KF2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:56:59.420 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:01.223 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:02.628+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:02.628+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:01.224 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:01.844 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:01.844 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UUOEtrtg8m1nnioP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21477/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:01.844 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:05.057+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:01.844 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:01.845 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:01.845 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UUOEtrtg8m1nnioP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21477/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:01.845 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:05.057+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:01.845 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:02.545 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:05.057+02:00",
"source": "#UUOEtrtg8m1nnioP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:04.191 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:04.776 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:07.395+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:07.395+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:04.777 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:05.404 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:05.404 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J2KZyDjA1eJbvE7C"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21478/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:05.404 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:08.609+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:05.404 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:05.406 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:05.406 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J2KZyDjA1eJbvE7C"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21478/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:05.406 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:08.609+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:05.406 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:06.322 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:08.609+02:00",
"source": "#J2KZyDjA1eJbvE7C",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:06.967 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:08.055 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:10.183+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:10.183+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:08.057 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:08.664 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:08.664 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wi4kK9yQmCC4d0sL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21479/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:08.664 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:11.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:08.664 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:08.665 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:08.665 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wi4kK9yQmCC4d0sL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21479/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:08.666 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:11.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:08.666 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:09.285 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:11.876+02:00",
"source": "#wi4kK9yQmCC4d0sL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:09.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:10.565 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:13.118+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:13.118+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:10.567 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:11.251 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:11.251 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f5yhJFiPFOcqSAFR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21480/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:11.251 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:14.422+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:11.251 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:11.253 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:11.253 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f5yhJFiPFOcqSAFR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21480/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:11.254 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:14.422+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:11.254 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:11.861 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:14.422+02:00",
"source": "#f5yhJFiPFOcqSAFR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:12.507 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:13.151 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:15.708+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:15.708+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:13.153 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:13.776 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:13.776 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vKHVhwta6caZGYzX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21481/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:13.776 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:16.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:13.776 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:13.778 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:13.778 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vKHVhwta6caZGYzX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21481/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:13.778 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:16.980+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:13.778 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:14.675 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:16.980+02:00",
"source": "#vKHVhwta6caZGYzX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:15.279 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:16.161 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:18.497+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:18.497+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:16.162 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:16.765 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:16.765 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RXP3BNSAQPaIWSFd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21482/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:16.765 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:19.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:16.765 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:16.766 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:16.766 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RXP3BNSAQPaIWSFd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21482/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:16.766 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:19.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:16.766 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:18.641 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:19.983+02:00",
"source": "#RXP3BNSAQPaIWSFd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:19.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:19.864 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:22.463+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:22.463+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:19.865 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:20.519 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:20.519 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P4ZWCtYqF5glDwf1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21483/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:20.519 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:23.730+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:20.519 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:20.521 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:20.521 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P4ZWCtYqF5glDwf1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21483/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:20.521 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:23.730+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:20.521 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:21.106 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:23.730+02:00",
"source": "#P4ZWCtYqF5glDwf1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:21.731 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:22.345 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:24.938+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:24.938+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:22.346 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:22.967 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:22.967 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5yAXBBj64lzNKyKO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21484/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:22.967 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:26.164+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:22.967 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:22.968 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:22.968 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5yAXBBj64lzNKyKO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21484/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:22.968 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:26.164+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:22.968 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:23.619 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:26.164+02:00",
"source": "#5yAXBBj64lzNKyKO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:24.214 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:24.832 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:27.427+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:27.427+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:24.834 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:25.464 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:25.464 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5rnlBLlUvb2n0yJl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21485/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:25.464 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:28.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:25.464 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:25.465 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:25.465 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5rnlBLlUvb2n0yJl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21485/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:25.465 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:28.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:25.465 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:26.098 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:28.675+02:00",
"source": "#5rnlBLlUvb2n0yJl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:26.742 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:27.375 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:29.949+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:29.949+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:27.375 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:27.989 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:27.989 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rakyYv3yeHfSo1W0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21486/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:27.989 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:31.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:27.989 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:27.990 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:27.990 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rakyYv3yeHfSo1W0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21486/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:27.990 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:31.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:27.990 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:28.598 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:31.204+02:00",
"source": "#rakyYv3yeHfSo1W0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:29.213 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:29.806 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:32.428+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:32.428+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:29.807 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:30.399 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:30.400 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TDdPTvIZq0wvO2ed"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21487/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:30.400 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:33.614+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:30.400 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:30.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:30.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TDdPTvIZq0wvO2ed"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21487/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:30.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:33.614+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:30.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:31.010 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:33.614+02:00",
"source": "#TDdPTvIZq0wvO2ed",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:31.634 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:32.266 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:34.848+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:34.848+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:32.268 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:32.898 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:32.899 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fIwXED0joJWpBCta"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21488/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:32.899 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:36.111+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:32.899 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:32.900 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:32.900 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fIwXED0joJWpBCta"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21488/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:32.900 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:36.111+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:32.900 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:33.517 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:36.111+02:00",
"source": "#fIwXED0joJWpBCta",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:34.153 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:34.752 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:37.367+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:37.367+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:34.754 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:35.358 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:35.358 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nLZnY0KiApL0Gqz9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21489/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:35.358 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:38.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:35.358 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:35.359 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:35.359 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nLZnY0KiApL0Gqz9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21489/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:35.359 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:38.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:35.359 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:35.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:38.573+02:00",
"source": "#nLZnY0KiApL0Gqz9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:36.576 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:37.212 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:39.790+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:39.790+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:37.214 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:37.824 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:37.824 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qRoUIEUe7FyxKIHo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21490/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:37.824 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:41.041+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:37.824 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:37.826 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:37.826 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qRoUIEUe7FyxKIHo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21490/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:37.826 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:41.041+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:37.826 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:38.415 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:41.041+02:00",
"source": "#qRoUIEUe7FyxKIHo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:39.037 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:39.882 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:42.249+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:42.249+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:39.883 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:40.511 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:40.511 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"loPWYgtmqVMshBl7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21491/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:40.511 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:43.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:40.511 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:40.512 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:40.512 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"loPWYgtmqVMshBl7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21491/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:40.512 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:43.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:40.513 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:41.120 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:43.728+02:00",
"source": "#loPWYgtmqVMshBl7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:41.742 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:42.347 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:44.956+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:44.956+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:42.348 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:42.987 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:42.987 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"W5a10sXr6nZfRS49"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21492/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:42.987 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:46.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:42.987 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:42.988 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:42.988 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"W5a10sXr6nZfRS49"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21492/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:42.988 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:46.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:42.988 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:43.583 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:46.204+02:00",
"source": "#W5a10sXr6nZfRS49",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:44.183 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:44.809 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:47.400+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:47.400+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:44.811 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:45.806 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:45.806 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sG9sYmyhLNWaThcO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21493/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:45.806 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:49.017+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:45.806 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:45.807 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:45.807 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sG9sYmyhLNWaThcO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21493/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:45.807 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:49.017+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:45.807 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:46.417 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:49.017+02:00",
"source": "#sG9sYmyhLNWaThcO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:47.052 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:47.695 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:50.264+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:50.264+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:47.696 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:48.319 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:48.320 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ppMnqq4qjDQGgyAF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21494/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:48.320 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:51.537+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:48.320 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:48.321 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:48.321 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ppMnqq4qjDQGgyAF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21494/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:48.321 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:51.537+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:48.321 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:48.924 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:51.537+02:00",
"source": "#ppMnqq4qjDQGgyAF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:49.541 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:50.146 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:52.752+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:52.752+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:50.147 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:50.743 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:50.743 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XLcR93pXNKIkKYZC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21495/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:50.743 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:53.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:50.744 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:50.745 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:50.745 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XLcR93pXNKIkKYZC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21495/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:50.745 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:53.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:50.745 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:51.375 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:53.961+02:00",
"source": "#XLcR93pXNKIkKYZC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:52.002 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:52.609 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:55.206+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:55.206+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:52.610 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:53.228 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:53.228 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1W3BArtRoOUeJivO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21496/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:53.228 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:56.442+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:53.228 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:53.229 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:53.229 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1W3BArtRoOUeJivO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21496/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:57:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:53.229 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:56.442+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:53.229 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:53.834 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:57:56.442+02:00",
"source": "#1W3BArtRoOUeJivO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:54.657 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:56.299 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:57:57.674+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:57:57.674+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:56.301 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:56.922 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:56.923 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f7WxTvQ6SbLGi7Fo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21497/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:56.923 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:00.139+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:56.923 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:56.924 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:56.924 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f7WxTvQ6SbLGi7Fo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21497/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:57:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:56.924 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:00.139+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:56.924 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:57:57.542 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:00.139+02:00",
"source": "#f7WxTvQ6SbLGi7Fo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:57:58.199 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:57:58.832 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:01.385+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:01.385+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:57:58.834 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:59.451 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:59.451 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vc3zQ416W90o3oIl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21498/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:59.451 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:02.666+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:59.452 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:57:59.453 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:57:59.453 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vc3zQ416W90o3oIl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21498/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:57:59.453 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:02.666+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:57:59.454 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:00.062 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:02.666+02:00",
"source": "#vc3zQ416W90o3oIl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:00.683 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:01.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:03.895+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:03.895+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:01.299 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:02.216 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:02.216 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jGidbuxX1ChQLLNM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21499/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:02.216 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:05.432+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:02.216 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:02.218 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:02.218 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jGidbuxX1ChQLLNM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21499/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:02.218 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:05.432+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:02.218 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:03.228 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:05.432+02:00",
"source": "#jGidbuxX1ChQLLNM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:03.831 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 13ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 13ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:04.437 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:07.049+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:07.049+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:04.438 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:05.060 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:05.061 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1KzRBaW3rECOaFyc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21500/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:05.061 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:08.278+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:05.061 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:05.062 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:05.062 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1KzRBaW3rECOaFyc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21500/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:05.062 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:08.278+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:05.062 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:05.683 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:08.278+02:00",
"source": "#1KzRBaW3rECOaFyc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:06.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:06.905 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:09.507+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:09.507+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:06.906 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:07.519 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:07.519 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vi9qYVArG1JGxcI5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21501/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:07.519 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:10.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:07.519 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:07.520 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:07.520 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vi9qYVArG1JGxcI5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21501/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:07.520 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:10.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:07.520 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:08.129 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:10.712+02:00",
"source": "#vi9qYVArG1JGxcI5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:09.123 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:09.962 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:12.334+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:12.334+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:09.963 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:10.577 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:10.578 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HjfCuwQMHzE0vhSZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21502/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:10.578 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:13.794+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:10.578 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:10.579 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:10.579 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HjfCuwQMHzE0vhSZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21502/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:10.579 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:13.794+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:10.579 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:11.191 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:13.794+02:00",
"source": "#HjfCuwQMHzE0vhSZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:12.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:13.455 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:16.043+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:16.043+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:13.456 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:14.070 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:14.070 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E62Kp91qgCIN9ce7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21503/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:14.070 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:17.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:14.070 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:14.071 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:14.071 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E62Kp91qgCIN9ce7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21503/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:14.072 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:17.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:14.072 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:14.674 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:17.282+02:00",
"source": "#E62Kp91qgCIN9ce7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:15.292 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:15.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:18.501+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:18.501+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:15.909 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:16.496 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:16.496 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gODXjq1mKgFKHlMY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21504/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:16.496 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:19.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:16.496 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:16.497 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:16.497 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gODXjq1mKgFKHlMY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21504/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:16.497 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:19.712+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:16.497 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:17.384 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:19.712+02:00",
"source": "#gODXjq1mKgFKHlMY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:18.000 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:18.589 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:21.218+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:21.218+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:18.590 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:19.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:19.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zO6IZ6zEsXj9CEkC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21505/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:19.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:22.398+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:19.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:19.183 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:19.183 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zO6IZ6zEsXj9CEkC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21505/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:19.183 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:22.398+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:19.183 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:19.816 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:22.398+02:00",
"source": "#zO6IZ6zEsXj9CEkC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:20.427 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:21.948 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:23.636+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:23.636+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:21.951 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:22.646 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:22.646 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ng1b7HLGzBvW15Fm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21506/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:22.646 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:25.859+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:22.646 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:22.647 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:22.647 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ng1b7HLGzBvW15Fm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21506/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:22.647 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:25.859+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:22.647 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:23.266 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:25.859+02:00",
"source": "#Ng1b7HLGzBvW15Fm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:23.882 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:24.494 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:27.097+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:27.097+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:24.495 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:25.336 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:25.336 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oWThC8zvRTDffVnI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21507/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:25.336 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:28.548+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:25.336 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:25.337 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:25.338 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oWThC8zvRTDffVnI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21507/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:25.338 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:28.548+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:25.338 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:25.986 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:28.548+02:00",
"source": "#oWThC8zvRTDffVnI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:26.618 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:28.245 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:29.832+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:29.832+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:28.246 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:28.870 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:28.870 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BkRLigxrQemZqQrQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21508/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:28.870 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:32.074+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:28.870 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:28.872 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:28.872 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BkRLigxrQemZqQrQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21508/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:28.872 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:32.074+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:28.872 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:29.464 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:32.074+02:00",
"source": "#BkRLigxrQemZqQrQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:31.056 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:31.684 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:34.270+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:34.270+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:31.685 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:32.489 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:32.489 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nyEqTcSCaskrHhc9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21509/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:32.489 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:35.493+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:32.489 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:32.490 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:32.490 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nyEqTcSCaskrHhc9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21509/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:32.490 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:35.493+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:32.490 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:33.125 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:35.493+02:00",
"source": "#nyEqTcSCaskrHhc9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:33.735 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:34.373 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:36.951+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:36.951+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:34.373 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:34.987 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:34.988 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QUI2Xs28bcFmV9HY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21510/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:34.988 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:38.197+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:34.988 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:34.989 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:34.989 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QUI2Xs28bcFmV9HY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21510/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:34.989 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:38.197+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:34.989 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:35.589 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:38.197+02:00",
"source": "#QUI2Xs28bcFmV9HY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:36.228 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:37.119 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:39.440+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:39.440+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:37.120 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:37.969 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:37.970 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZEhPKLlAMU4tXLYp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21511/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:37.970 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:41.161+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:37.970 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:37.971 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:37.971 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZEhPKLlAMU4tXLYp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21511/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:37.971 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:41.161+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:37.971 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:38.582 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:41.161+02:00",
"source": "#ZEhPKLlAMU4tXLYp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:39.248 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:40.154 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:42.465+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:42.465+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:40.155 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:40.824 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:40.824 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6qL5fMkJ8Z9940CP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21512/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:40.824 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:44.011+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:40.824 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:40.825 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:40.825 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6qL5fMkJ8Z9940CP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21512/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:40.825 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:44.011+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:40.825 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:41.471 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:44.011+02:00",
"source": "#6qL5fMkJ8Z9940CP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:42.179 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:42.822 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:45.360+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:45.360+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:42.824 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:43.473 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:43.473 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4UhUOnNrQCxijZRe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21513/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:43.473 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:46.683+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:43.473 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:43.475 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:43.475 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4UhUOnNrQCxijZRe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21513/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:43.475 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:46.683+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:43.475 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:44.080 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:46.683+02:00",
"source": "#4UhUOnNrQCxijZRe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:44.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:45.349 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:47.919+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:47.919+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:45.351 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:45.966 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:45.966 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UWvVdiOZNNzZpgM0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21514/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:45.966 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:49.176+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:45.966 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:45.967 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:45.967 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UWvVdiOZNNzZpgM0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21514/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:45.967 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:49.176+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:45.968 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:46.579 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:49.176+02:00",
"source": "#UWvVdiOZNNzZpgM0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:47.482 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:48.343 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:50.686+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:50.686+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:48.345 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:48.948 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:48.948 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LHF1fskEGcORVsDM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21515/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:48.948 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:52.164+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:48.948 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:48.949 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:48.949 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LHF1fskEGcORVsDM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21515/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:48.949 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:52.164+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:48.949 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:49.545 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:52.164+02:00",
"source": "#LHF1fskEGcORVsDM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:51.174 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:52.496 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:54.385+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:54.385+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:52.498 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:53.126 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:53.126 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c60HPz6q02uPDqSx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21516/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:53.126 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:56.343+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:53.126 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:53.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:53.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c60HPz6q02uPDqSx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21516/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:53.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:56.343+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:53.127 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:53.734 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:56.343+02:00",
"source": "#c60HPz6q02uPDqSx",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:54.362 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:54.972 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:58:57.576+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:58:57.576+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:54.973 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:55.587 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:55.587 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UVJqhyqwaNfdAq12"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21517/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:55.587 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:58.790+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:55.587 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:55.589 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:55.589 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UVJqhyqwaNfdAq12"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21517/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:58:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:58:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:55.589 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:58.790+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:55.589 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:56.228 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:58:58.790+02:00",
"source": "#UVJqhyqwaNfdAq12",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:58:56.866 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:58:58.099 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:00.072+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:00.072+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:58:58.101 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:58.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:58.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x3DuSOXmdauZg6Lu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21518/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:58.773 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:01.979+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:58.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:58:58.774 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:58:58.774 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x3DuSOXmdauZg6Lu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21518/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:58:58.774 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:01.979+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:58:58.774 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:58:59.416 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:01.979+02:00",
"source": "#x3DuSOXmdauZg6Lu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:00.020 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:00.637 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:03.238+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:03.238+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:00.638 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:01.458 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:01.458 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3skGfp1ifuFyHJ1N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21519/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:01.458 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:04.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:01.458 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:01.459 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:01.459 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3skGfp1ifuFyHJ1N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21519/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:01.459 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:04.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:01.459 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:02.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:04.669+02:00",
"source": "#3skGfp1ifuFyHJ1N",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:03.302 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:03.900 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:05.975+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:05.975+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:03.901 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:04.525 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:04.525 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NWMYiH4jfwDZpLh3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21520/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21520/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:04.525 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:07.743+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:04.526 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:04.527 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:04.527 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NWMYiH4jfwDZpLh3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21520/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21520/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:04.527 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:07.743+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:04.527 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:05.400 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:07.743+02:00",
"source": "#NWMYiH4jfwDZpLh3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:06.027 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:06.651 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:09.242+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:09.242+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:06.652 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:07.260 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:07.260 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SGva2wBZlTJzkLqg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21521/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21521/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:07.260 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:10.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:07.260 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:07.262 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:07.262 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SGva2wBZlTJzkLqg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21521/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21521/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:07.262 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:10.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:07.262 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:07.857 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:10.472+02:00",
"source": "#SGva2wBZlTJzkLqg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:08.679 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:09.582 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:11.730+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:11.730+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:09.583 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:10.289 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:10.290 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xrLlwOIZxrYPSDoS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21522/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21522/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:10.290 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:13.507+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:10.290 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:10.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:10.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xrLlwOIZxrYPSDoS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21522/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21522/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:10.291 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:13.507+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:10.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:10.924 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:13.507+02:00",
"source": "#xrLlwOIZxrYPSDoS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:11.566 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:12.193 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:14.783+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:14.783+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:12.194 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:12.796 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:12.796 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6Rjhc7mc41hbsEEB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21523/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21523/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:12.796 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:16.013+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:12.796 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:12.797 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:12.797 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6Rjhc7mc41hbsEEB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21523/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21523/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:12.797 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:16.013+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:12.797 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:13.436 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:16.013+02:00",
"source": "#6Rjhc7mc41hbsEEB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:14.314 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:14.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:17.527+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:17.527+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:14.910 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:15.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:15.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"isVO3HJy18LcKeA8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21524/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21524/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:15.780 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:18.998+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:15.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:15.781 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:15.781 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"isVO3HJy18LcKeA8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21524/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21524/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:15.781 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:18.998+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:15.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:16.364 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:18.998+02:00",
"source": "#isVO3HJy18LcKeA8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:17.006 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:17.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:20.213+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:20.213+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:17.829 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:18.469 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:18.469 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g5dJEMmXPh54dKkG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21525/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21525/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:18.469 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:21.666+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:18.469 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:18.471 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:18.471 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g5dJEMmXPh54dKkG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21525/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21525/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:18.471 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:21.666+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:18.471 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:20.083 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:21.666+02:00",
"source": "#g5dJEMmXPh54dKkG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:20.700 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:21.566 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:23.916+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:23.916+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:21.567 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:22.193 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:22.194 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yZ6xWDdnvbfQxt2x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21526/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21526/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:22.194 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:25.402+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:22.194 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:22.195 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:22.195 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yZ6xWDdnvbfQxt2x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21526/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21526/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:22.195 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:25.402+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:22.195 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:23.092 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:25.402+02:00",
"source": "#yZ6xWDdnvbfQxt2x",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:23.813 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:24.666 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:27.022+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:27.022+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:24.667 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:25.274 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:25.274 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ojbOBD29z6p7AzRW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21527/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21527/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:25.274 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:28.480+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:25.274 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:25.275 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:25.275 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ojbOBD29z6p7AzRW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21527/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21527/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:25.275 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:28.480+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:25.275 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:25.882 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:28.480+02:00",
"source": "#ojbOBD29z6p7AzRW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:26.536 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:27.175 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:29.731+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:29.731+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:27.177 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:27.817 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:27.817 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G8f0y83XjbMyi0Pr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21528/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21528/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:27.817 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:31.029+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:27.817 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:27.819 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:27.819 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G8f0y83XjbMyi0Pr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21528/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21528/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:27.819 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:31.029+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:27.820 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:28.446 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:31.029+02:00",
"source": "#G8f0y83XjbMyi0Pr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:29.064 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:30.046 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:32.279+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:32.279+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:30.047 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:30.658 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:30.658 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"t1Fj46WX900zkuZs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21529/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21529/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:30.658 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:33.874+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:30.658 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:30.659 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:30.659 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"t1Fj46WX900zkuZs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21529/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21529/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:30.659 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:33.874+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:30.659 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:31.273 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:33.874+02:00",
"source": "#t1Fj46WX900zkuZs",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:31.920 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:32.522 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:35.110+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:35.110+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:32.524 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:33.403 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:33.403 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"w9xBou5pxEooxBwK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21530/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21530/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:33.404 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:36.615+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:33.404 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:33.405 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:33.405 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"w9xBou5pxEooxBwK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21530/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21530/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:33.405 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:36.615+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:33.405 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:34.491 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:36.615+02:00",
"source": "#w9xBou5pxEooxBwK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:36.043 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:36.658 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:39.257+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:39.257+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:36.659 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:38.287 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:38.287 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nt1m5q3UaYcLnaAb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21531/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21531/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:38.287 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:41.498+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:38.287 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:38.289 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:38.289 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nt1m5q3UaYcLnaAb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21531/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21531/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:38.289 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:41.498+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:38.289 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:39.113 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:41.498+02:00",
"source": "#nt1m5q3UaYcLnaAb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:39.752 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:41.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:42.965+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:42.965+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:41.012 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:41.730 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:41.730 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vv4B0o1RBTfNDgc2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21532/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21532/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:41.730 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:44.940+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:41.730 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:41.732 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:41.732 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vv4B0o1RBTfNDgc2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21532/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21532/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:41.732 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:44.940+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:41.732 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:42.382 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:44.940+02:00",
"source": "#vv4B0o1RBTfNDgc2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:43.017 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:43.639 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:46.228+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:46.228+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:43.641 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:44.276 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:44.277 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4tpPULvjfVlGk1nf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21533/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21533/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:44.277 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:47.489+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:44.277 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:44.278 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:44.278 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4tpPULvjfVlGk1nf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21533/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21533/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:44.278 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:47.489+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:44.278 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:44.906 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:47.489+02:00",
"source": "#4tpPULvjfVlGk1nf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:45.737 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:46.867 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:48.883+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:48.883+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:46.869 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:48.501 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:48.501 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Q1Ok31YJPkqj7HN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21534/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21534/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:48.501 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:51.715+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:48.501 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:48.503 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:48.503 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Q1Ok31YJPkqj7HN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21534/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21534/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:48.503 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:51.715+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:48.503 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:49.109 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:51.715+02:00",
"source": "#9Q1Ok31YJPkqj7HN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:49.721 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:50.331 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:52.936+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:52.936+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:50.333 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:50.984 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:50.984 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cgEOxbz2wIau4PXY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21535/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21535/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:50.985 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:54.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:50.985 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:50.986 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:50.986 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cgEOxbz2wIau4PXY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21535/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21535/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:50.986 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:54.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:50.986 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:52.254 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:54.189+02:00",
"source": "#cgEOxbz2wIau4PXY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:52.893 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:53.495 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:56.096+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:56.096+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:53.496 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:54.089 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:54.090 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"B3Jh6wLAVLQX4JHy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21536/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21536/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:54.090 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:57.298+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:54.090 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:54.091 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:54.091 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"B3Jh6wLAVLQX4JHy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21536/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21536/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:54.091 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:57.298+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:54.091 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:54.714 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:57.298+02:00",
"source": "#B3Jh6wLAVLQX4JHy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:55.357 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:55.996 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T11:59:58.555+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T11:59:58.555+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:55.997 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:56.674 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:56.674 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4pPsLz8My9ue8XRf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21537/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21537/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:56.674 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:59.879+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:56.674 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:56.676 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:56.676 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4pPsLz8My9ue8XRf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21537/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 09:59:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21537/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 09:59:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:56.676 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:59.879+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:56.676 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:59:57.499 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T11:59:59.879+02:00",
"source": "#4pPsLz8My9ue8XRf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:59:58.158 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:59:58.804 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:01.361+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:01.361+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:59:58.805 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:59.474 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:59.474 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bg5ca2VvnPz0VRj4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21538/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21538/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:59.474 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:02.678+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:59.474 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:59:59.475 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:59:59.475 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bg5ca2VvnPz0VRj4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21538/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21538/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:59:59.475 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:02.678+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:59:59.475 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:00.081 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:02.678+02:00",
"source": "#Bg5ca2VvnPz0VRj4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:00.753 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:01.386 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:03.956+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:03.956+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:01.388 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:02.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:02.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OtxLY1HlGyRIJI3r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21539/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21539/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:02.026 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:05.236+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:02.026 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:02.027 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:02.027 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OtxLY1HlGyRIJI3r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21539/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21539/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:02.027 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:05.236+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:02.027 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:02.722 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:05.236+02:00",
"source": "#OtxLY1HlGyRIJI3r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:03.357 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:03.978 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:06.568+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:06.568+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:03.979 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:04.648 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:04.648 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yknTLEG4VroP9DfD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21540/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21540/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:04.648 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:07.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:04.648 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:04.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:04.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yknTLEG4VroP9DfD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21540/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21540/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:04.649 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:07.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:04.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:05.277 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:07.846+02:00",
"source": "#yknTLEG4VroP9DfD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:05.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:07.717 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:09.124+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:09.124+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:07.719 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:08.346 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:08.346 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5IfdhsOUNrFw8U9U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21541/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21541/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:08.346 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:11.557+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:08.346 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:08.347 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:08.347 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5IfdhsOUNrFw8U9U"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21541/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21541/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:08.347 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:11.557+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:08.348 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:08.963 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:11.557+02:00",
"source": "#5IfdhsOUNrFw8U9U",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:09.935 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:10.572 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:13.149+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:13.149+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:10.573 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:11.257 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:11.257 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4F6C0loUQw5FpmuI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21542/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21542/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:11.257 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:14.462+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:11.257 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:11.258 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:11.258 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4F6C0loUQw5FpmuI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21542/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21542/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:11.258 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:14.462+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:11.259 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:11.871 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:14.462+02:00",
"source": "#4F6C0loUQw5FpmuI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:12.847 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:13.465 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:16.058+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:16.058+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:13.466 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:14.085 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:14.086 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"884j62OOWWTh6uRt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21543/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21543/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:14.086 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:17.296+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:14.086 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:14.087 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:14.087 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"884j62OOWWTh6uRt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21543/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21543/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:14.087 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:17.296+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:14.087 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:14.694 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:17.296+02:00",
"source": "#884j62OOWWTh6uRt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:16.323 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:17.001 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:19.525+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:19.525+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:17.003 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:17.622 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:17.622 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pptsJIAwsI8cdOTD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21544/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21544/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:17.622 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:20.835+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:17.622 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:17.624 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:17.624 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pptsJIAwsI8cdOTD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21544/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21544/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:17.624 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:20.835+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:17.624 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:18.518 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:20.835+02:00",
"source": "#pptsJIAwsI8cdOTD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:19.146 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:19.785 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:22.348+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:22.348+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:19.786 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:20.413 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:20.413 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fYLeestgobiexOPm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21545/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21545/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:20.414 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:23.630+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:20.414 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:20.415 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:20.415 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fYLeestgobiexOPm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21545/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21545/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:20.415 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:23.630+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:20.415 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:21.222 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:23.630+02:00",
"source": "#fYLeestgobiexOPm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:22.087 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:22.707 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:25.289+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:25.289+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:22.708 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:23.313 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:23.313 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c7bXVxdC9D6imOc3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21546/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21546/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:23.313 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:26.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:23.313 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:23.314 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:23.314 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"c7bXVxdC9D6imOc3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21546/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21546/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:23.314 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:26.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:23.314 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:23.919 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:26.512+02:00",
"source": "#c7bXVxdC9D6imOc3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:24.552 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:25.172 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:27.763+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:27.763+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:25.173 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:25.861 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:25.861 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jA24gbklMmD3JOCB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21547/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21547/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:25.861 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:29.071+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:25.861 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:25.863 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:25.863 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jA24gbklMmD3JOCB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21547/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21547/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:25.863 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:29.071+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:25.863 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:26.480 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:29.071+02:00",
"source": "#jA24gbklMmD3JOCB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:27.121 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:27.781 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:30.324+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:30.324+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:27.782 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:28.398 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:28.398 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tKGFCCuIHS415Cbh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21548/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21548/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:28.399 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:31.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:28.399 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:28.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:28.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tKGFCCuIHS415Cbh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21548/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21548/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:28.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:31.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:28.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:29.298 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:31.605+02:00",
"source": "#tKGFCCuIHS415Cbh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:29.932 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:30.642 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:33.143+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:33.143+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:30.644 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:31.287 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:31.287 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q6Sy8oBHBQyGGszn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21549/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21549/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:31.287 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:34.503+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:31.287 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:31.289 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:31.289 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q6Sy8oBHBQyGGszn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21549/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21549/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:31.289 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:34.503+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:31.289 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:31.907 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:34.503+02:00",
"source": "#q6Sy8oBHBQyGGszn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:32.583 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:33.232 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:35.778+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:35.778+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:33.234 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:34.039 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:34.039 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZRITiHOCngrboD8I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21550/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21550/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:34.039 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:37.252+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:34.039 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:34.040 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:34.040 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZRITiHOCngrboD8I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21550/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21550/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:34.040 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:37.252+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:34.041 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:35.052 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:37.252+02:00",
"source": "#ZRITiHOCngrboD8I",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:35.880 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:36.489 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:39.083+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:39.083+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:36.491 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:37.136 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:37.136 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tWHZpkahAwASkD3M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21551/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21551/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:37.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:40.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:37.136 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:37.137 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:37.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tWHZpkahAwASkD3M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21551/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21551/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:37.138 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:40.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:37.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:37.797 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:40.331+02:00",
"source": "#tWHZpkahAwASkD3M",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:38.440 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:39.420 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:41.650+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:41.650+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:39.422 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:40.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:40.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1diveg3RUY4BdHug"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21552/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21552/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:40.028 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:43.238+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:40.029 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:40.030 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:40.031 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1diveg3RUY4BdHug"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21552/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21552/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:40.031 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:43.238+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:40.031 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:40.663 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:43.238+02:00",
"source": "#1diveg3RUY4BdHug",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:41.279 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:41.885 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:44.495+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:44.495+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:41.887 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:42.519 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:42.519 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9YZDdWhsx5MnbSp0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21553/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21553/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:42.519 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:45.716+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:42.519 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:42.521 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:42.521 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9YZDdWhsx5MnbSp0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21553/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21553/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:42.521 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:45.716+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:42.521 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:43.115 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:45.716+02:00",
"source": "#9YZDdWhsx5MnbSp0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:43.727 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:44.316 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:46.940+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:46.940+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:44.317 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:44.938 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:44.938 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5ly5D4cwoYcXjFHH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21554/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21554/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:44.938 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:48.150+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:44.938 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:44.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:44.940 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5ly5D4cwoYcXjFHH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21554/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21554/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:44.940 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:48.150+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:44.940 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:45.558 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:48.150+02:00",
"source": "#5ly5D4cwoYcXjFHH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:46.197 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:46.827 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:49.396+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:49.396+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:46.827 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:47.488 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:47.488 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4rKwLWCQ1tTPySuj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21555/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21555/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:47.488 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:50.692+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:47.488 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:47.489 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:47.489 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4rKwLWCQ1tTPySuj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21555/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21555/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:47.490 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:50.692+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:47.490 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:48.140 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:50.692+02:00",
"source": "#4rKwLWCQ1tTPySuj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:48.777 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:49.404 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:51.974+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:51.974+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:49.405 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:50.017 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:50.017 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZOxikrfHkB4QAaNw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21556/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21556/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:50.017 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:53.229+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:50.017 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:50.019 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:50.019 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZOxikrfHkB4QAaNw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21556/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21556/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:50.019 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:53.229+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:50.019 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:50.667 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:53.229+02:00",
"source": "#ZOxikrfHkB4QAaNw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:51.270 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:52.284 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:54.485+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:54.485+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:52.285 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:52.928 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:52.928 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aEb8MsJK4Te7qYMi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21557/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21557/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:52.928 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:56.139+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:52.928 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:52.929 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:52.929 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aEb8MsJK4Te7qYMi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21557/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21557/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:52.929 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:56.139+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:52.930 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:53.533 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:56.139+02:00",
"source": "#aEb8MsJK4Te7qYMi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:54.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:54.957 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:00:57.368+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:00:57.368+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:54.959 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:55.581 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:55.581 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6WlHhcmYBrCYXk19"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21558/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21558/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:55.581 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:58.796+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:55.581 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:55.582 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:55.582 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6WlHhcmYBrCYXk19"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21558/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:00:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21558/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:00:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:55.583 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:58.796+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:55.583 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:56.210 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:00:58.796+02:00",
"source": "#6WlHhcmYBrCYXk19",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:56.809 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:00:57.437 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:00.025+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:00.025+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:00:57.439 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:58.059 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:58.059 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"irnBVfRBQVFDhUdA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21559/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21559/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:58.059 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:01.265+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:58.059 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:00:58.060 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:00:58.060 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"irnBVfRBQVFDhUdA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21559/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21559/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:00:58.060 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:01.265+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:00:58.060 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:00:58.876 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:01.265+02:00",
"source": "#irnBVfRBQVFDhUdA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:00:59.501 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:00.114 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:02.716+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:02.716+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:00.116 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:00.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:00.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mSOnEkyPuVRLTt16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21560/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21560/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:00.728 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:03.942+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:00.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:00.729 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:00.729 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mSOnEkyPuVRLTt16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21560/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21560/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:00.729 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:03.942+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:00.729 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:01.325 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:03.942+02:00",
"source": "#mSOnEkyPuVRLTt16",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:01.932 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:02.546 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:05.144+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:05.144+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:02.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:03.168 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:03.169 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xu8Yi0aL4kvrMziH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21561/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21561/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:03.169 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:06.380+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:03.169 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:03.171 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:03.171 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xu8Yi0aL4kvrMziH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21561/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21561/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:03.171 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:06.380+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:03.171 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:04.060 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:06.380+02:00",
"source": "#xu8Yi0aL4kvrMziH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:04.697 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:05.320 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:07.910+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:07.910+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:05.322 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:06.216 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:06.216 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"D7OKfPOrBLwOUoXr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21562/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21562/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:06.216 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:09.427+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:06.216 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:06.217 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:06.217 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"D7OKfPOrBLwOUoXr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21562/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21562/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:06.217 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:09.427+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:06.217 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:06.813 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:09.427+02:00",
"source": "#D7OKfPOrBLwOUoXr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:07.423 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:08.040 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:10.638+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:10.638+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:08.041 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:08.666 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:08.666 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UfKq4t63dtKCpOZb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21563/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21563/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:08.666 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:11.868+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:08.666 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:08.667 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:08.667 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UfKq4t63dtKCpOZb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21563/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21563/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:08.667 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:11.868+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:08.667 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:09.279 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:11.868+02:00",
"source": "#UfKq4t63dtKCpOZb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:09.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:10.909 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:13.115+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:13.115+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:10.910 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:11.522 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:11.522 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5W0qQdBF0FCCnh16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21564/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21564/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:11.522 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:14.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:11.522 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:11.523 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:11.523 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5W0qQdBF0FCCnh16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21564/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21564/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:11.523 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:14.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:11.523 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:12.133 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:14.728+02:00",
"source": "#5W0qQdBF0FCCnh16",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:12.743 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:13.355 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:15.954+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:15.954+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:13.357 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:13.965 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:13.966 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rC6l3N8QSlNNaqml"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21565/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21565/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:13.966 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:17.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:13.966 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:13.967 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:13.967 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rC6l3N8QSlNNaqml"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21565/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21565/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:13.967 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:17.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:13.967 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:14.565 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:17.179+02:00",
"source": "#rC6l3N8QSlNNaqml",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:15.164 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:15.771 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:18.379+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:18.379+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:15.772 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:16.394 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:16.394 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R8qqJbBGme5XY5aP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21566/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21566/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:16.394 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:19.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:16.394 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:16.395 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:16.395 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R8qqJbBGme5XY5aP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21566/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21566/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:16.395 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:19.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:16.395 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:17.015 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:19.605+02:00",
"source": "#R8qqJbBGme5XY5aP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:17.623 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:18.227 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:20.826+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:20.826+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:18.227 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:18.835 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:18.835 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"T4tKjPRVtDoLZt16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21567/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21567/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:18.835 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:22.045+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:18.835 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:18.836 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:18.836 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"T4tKjPRVtDoLZt16"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21567/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21567/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:18.836 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:22.045+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:18.836 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:19.475 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:22.045+02:00",
"source": "#T4tKjPRVtDoLZt16",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:20.090 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:21.721 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:23.293+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:23.293+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:21.721 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:22.351 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:22.351 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"90ZVeJxBdHqedDbV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21568/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21568/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:22.351 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:25.560+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:22.351 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:22.353 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:22.353 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"90ZVeJxBdHqedDbV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21568/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21568/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:22.353 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:25.560+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:22.353 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:22.961 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:25.560+02:00",
"source": "#90ZVeJxBdHqedDbV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:23.601 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:24.229 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:26.806+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:26.806+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:24.231 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:24.839 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:24.839 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AJqwnvhcfBskxIIt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21569/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21569/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:24.839 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:28.052+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:24.840 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:24.841 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:24.841 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AJqwnvhcfBskxIIt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21569/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21569/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:24.841 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:28.052+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:24.841 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:25.436 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:28.052+02:00",
"source": "#AJqwnvhcfBskxIIt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:26.181 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:26.794 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:29.389+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:29.389+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:26.795 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:27.443 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:27.443 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwNoE1SU03EA3Lqv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21570/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21570/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:27.443 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:30.648+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:27.443 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:27.444 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:27.444 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwNoE1SU03EA3Lqv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21570/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21570/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:27.444 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:30.648+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:27.444 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:28.347 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:30.648+02:00",
"source": "#fwNoE1SU03EA3Lqv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:28.973 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:29.688 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:32.183+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:32.183+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:29.689 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:30.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:30.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ovbOfiTHDcvtl5CM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21571/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21571/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:30.302 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:33.498+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:30.302 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:30.303 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:30.303 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ovbOfiTHDcvtl5CM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21571/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21571/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:30.304 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:33.498+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:30.304 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:30.937 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:33.498+02:00",
"source": "#ovbOfiTHDcvtl5CM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:31.590 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:32.228 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:34.798+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:34.798+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:32.229 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:32.856 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:32.856 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ol1P06iQikvcAkbX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21572/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21572/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:32.856 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:36.063+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:32.856 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:32.857 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:32.857 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ol1P06iQikvcAkbX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21572/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21572/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:32.857 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:36.063+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:32.857 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:33.478 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:36.063+02:00",
"source": "#Ol1P06iQikvcAkbX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:34.083 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:34.717 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:37.287+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:37.287+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
12:01:34.717 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:35.373 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:35.373 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qd00gjIzRFeg4GGQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21573/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21573/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:35.373 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:38.554+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:35.373 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
12:01:35.374 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
12:01:35.374 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qd00gjIzRFeg4GGQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21573/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 10:01:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/21573/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 10:01:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
12:01:35.374 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:38.554+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
12:01:35.374 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
12:01:36.046 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "21573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T12:01:38.554+02:00",
"source": "#qd00gjIzRFeg4GGQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
12:01:36.689 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
12:01:37.548 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T12:01:39.891+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T12:01:39.891+02:00"
}
]
}